#include "Socket.hpp"

void Usage(const char*str)
{
    std::cout<<"请输入: "<<str<<" 端口号"<<std::endl;
}
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
        exit(0);
    }
    EnableMonitorStrategy();
    uint16_t port=std::stoi(argv[1]);
    std::unique_ptr<Socket> ptr=std::make_unique<TcpSocket>();
    ptr->BuildTcpSocket(port);
    return 0;
}